﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace KQ.DCMMP.Common
{
    public static class DefaultRowStates
    {
        public const string Default = "Default";
        public const string Detached = "Detached";
        public const string Unchanged = "Unchanged";
        public const string Added = "Added";
        public const string Deleted = "Deleted";
        public const string Modified = "Modified";

        public static bool IsDefault(string extensionType)
        {
            return string.Equals(extensionType, Default, StringComparison.OrdinalIgnoreCase);
        }
        public static bool IsDetached(string extensionType)
        {
            return string.Equals(extensionType, Detached, StringComparison.OrdinalIgnoreCase);
        }
        public static bool IsUnchanged(string extensionType)
        {
            return string.Equals(extensionType, Unchanged, StringComparison.OrdinalIgnoreCase);
        }
        public static bool IsAdded(string extensionType)
        {
            return string.Equals(extensionType, Added, StringComparison.OrdinalIgnoreCase);
        }
        public static bool IsDeleted(string extensionType)
        {
            return string.Equals(extensionType, Deleted, StringComparison.OrdinalIgnoreCase);
        }
        public static bool IsModified(string extensionType)
        {
            return string.Equals(extensionType, Modified, StringComparison.OrdinalIgnoreCase);
        }
    }
}
